# -*- coding: utf-8 -*-
import ConfigParser
cf = ConfigParser.ConfigParser()
cf.readfp(open(r'static\conf.ini'))
def change(local,value,msg):
    if not cf.has_section(local):
        return False
    else:
        cf.set(local,value,msg)
        cf.write(open(r'static\conf.ini','r+'))
        return True

def readini(local,value):
    if not cf.has_section(local):
        return False
    else:
        result = cf.get(local,value)
        return result